import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export default {
  // 单个图片上传
  uploadImage: formData => {
    return http.request<any>(
      "post",
      baseUrlApi("/upload/image"),
      { data: formData },
      {
        headers: {
          "Content-Type": "multipart/form-data"
        }
      }
    );
  }
};
